package com.skyworth.user.controller;

import com.skyworth.common.base.controller.AbstractController;
import com.skyworth.userapi.pojo.dto.accountinfo.req.*;
import com.skyworth.userapi.pojo.dto.accountinfo.res.*;
import com.skyworth.userapi.api.AccountInfoApi;
import com.skyworth.user.service.AccountInfoService;
import com.skyworth.core.pojo.dto.PageResDTO;
import com.skyworth.core.pojo.dto.ResDTO;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.List;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 代理商员工表 模块接口
 * </p>
 *
 * @author wuxj
 * @since 2020-04-23
 */
@RestController
public class AccountInfoController extends AbstractController implements AccountInfoApi {

    @Resource
    private AccountInfoService accountInfoService;

    /**
    * 查询分页数据
    */
    @Override
    public ResDTO<PageResDTO<AccountInfoListResDTO>> list(@RequestBody @Valid AccountInfoListReqDTO accountInfoListReqDTO){
      return null;
    }

    /**
    * 根据id查询
    */
    @Override
    public ResDTO<AccountInfoGetResDTO> get(@PathVariable("id") Long id){
      return null;
    }

    /**
    * 新增
    */
    @Override
    public ResDTO<Void> add(@RequestBody @Valid AccountInfoAddReqDTO accountInfoAddReqDTO){
      return null;
    }

    /**
    * 删除
    */
    @Override
    public ResDTO<Void> delete(@PathVariable("ids") List<Long> ids){
      return null;
    }

    /**
    * 修改
    */
    @Override
    public ResDTO<Void> update(@RequestBody @Valid AccountInfoUpdateReqDTO accountInfoUpdateReqDTO){
      return null;
    }
}
